package com.h3c.ptability.dto;

import java.sql.Blob;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
    import io.swagger.annotations.ApiModel;
    import io.swagger.annotations.ApiModelProperty;
import org.springframework.web.multipart.MultipartFile;

/**
 * Copyright (C), 2020-2020, h3c
 * FileName: PtFileTemplateDTO
 *
 * @Author: l22886
 * @Date: 2022-03-14
 * Description: pt_file_template dto实体
 * Version: 1.0
 */
@ApiModel(value="PtFileTemplate对象", description="")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PtFileTemplateDTO {


    private String fileTemplateId;

    private String appId;

    private String templateName;

    @ApiModelProperty(value = "模板编码")
    private String templateCode;

    @ApiModelProperty(value = "1 导入excel模板; 2导出excel模板;")
    private Integer templateType;

    @ApiModelProperty(value = "从那一行开始解析数据")
    private Integer startRow;

    @ApiModelProperty(value = "从那一列开始解析数据")
    private Integer startCol;

    @ApiModelProperty(value = "需要解析多少列")
    private Integer colSize;

    @ApiModelProperty(value = "每一列对应的json字段名")
    private String fieldContent;

    @ApiModelProperty(value = "模板文件存储路径")
    private String templateFilePath;

    private byte[] templateFile;

    private byte[] origTemplateFile;

    private String modifyFlag;

    /**
     * 排序字段 + 升序， -降序
     * 比如 +updateTime 根据 修改时间升序排序，-updateTime 根据 修改时间降序排序
     */
    private String orderBy;

    private MultipartFile uploadTemplateFile;

}
